/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2204 - ForIn2
 * <p>Powered by webrx On 2022-09-05 14:16:53
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class ForIn2 {
    public static void main(String[] args) {
        //数组对象，属性引用类型
        String[] stu = {"李四", "王五", "赵六"};
        for (int i = 0; i < stu.length; i++) {
            System.out.println(stu[i]);
        }

        for (int i = stu.length - 1; i >= 0; i--) {
            System.out.println(stu[i]);
        }

        //for in  for each for of
        //java for : 语句主要用来循环集合数组对象
        for(String t : stu){
            System.out.println(t);
        }

        //声明10个元素的数组，默认值是0
        int[] ns = new int[10];
        System.out.println(ns[9]);


        //java.util.Date 类
        //Date d = new Date();

    }
}
